package com.piggy.logi.sys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.piggy.common.core.web.page.BaseMapperPlus;
import com.piggy.logi.sys.domain.LogiDrayage;
import com.piggy.logi.sys.domain.LogiSchedule;
import com.piggy.logi.sys.vo.LogiDrayageExtVo;
import com.piggy.logi.sys.vo.LogiScheduleExtVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 短驳车次信息Mapper接口
 *
 * @author piggy
 * @date 2023-09-18
 */
public interface LogiDrayageMapper extends BaseMapperPlus<LogiDrayage> {

    default LogiDrayage findByUk(String drayageNo) {
        return selectOne(Wrappers.<LogiDrayage>lambdaQuery().eq(LogiDrayage::getDrayageNo, drayageNo));
    }

    List<LogiDrayageExtVo> selectDRYList(@Param("ew") Wrapper<LogiDrayage> ew);

}
